﻿package com.bizmlib.utils.sets
{
	import flash.events.*;
	
	
	public class SetManagerEvent extends Event
	{
		
		public static const ITEM_UPDATE:String = "itemUpdate";
		public static const ITEM_ADD:String = "itemAdd";
		public static const ITEM_REMOVE:String = "itemRemove";
		public static const ITEM_MOVE:String = "itemMove";
		
		
		private var __currentItemIndex:Number;
		private var __newItemIndex:Number;
		private var __itemData:Object;
		
		
		public function SetManagerEvent(type:String = undefined, currentItemIndex:Number = undefined, newItemIndex:Number = undefined, itemData:Object = undefined)
		{
			super(type);
			
			__currentItemIndex = currentItemIndex;
			__newItemIndex = newItemIndex;
			__itemData = itemData;
		}
		
		
		public function get currentItemIndex():Number
		{
			return __currentItemIndex;
		}
		public function get newItemIndex():Number
		{
			return __newItemIndex;
		}
		public function get itemData():Object
		{
			return __itemData;
		}
		
		
		override public function toString():String
		{
			return "[com.bizmlib.utils.sets.SetManagerEvent	type=" + type + "	currentItemIndex=" + currentItemIndex + "	newItemIndex=" + newItemIndex + "	itemData=" + itemData + "]";
		}
	}
}